package com.atguigu04.example.exer3;

/**
 * ClassName: circle
 * Package: com.atguigu04.example.exer3
 * Description:
 *
 * @Author xiao_qi
 * @Create 2024/3/16 22:53
 * @Version 1.0
 */
public class circle {
    double radius;//半径
    //方法
    public void findArea(){
        System.out.println("面积为：" + 3.14 * radius * radius);
    }
    //或
    public double findArea2(){
        return 3.14 * radius * radius;
    }
}
